<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
  <meta charset="UTF-8">
  <meta name="Author" content="haley">
  <meta name="Keywords" content="bootstrap弹框">
  <meta name="Description" content="bootstrap弹框">
  <script crossorigin="anonymous" integrity="sha384-6ePHh72Rl3hKio4HiJ841psfsRJveeS+aLoaEf3BWfS+gTF0XdAqku2ka8VddikM" src="https://lib.baomitu.com/jquery/1.11.3/jquery.min.js"></script>
  <link crossorigin="anonymous" integrity="sha384-pdapHxIh7EYuwy6K7iE41uXVxGCXY0sAjBzaElYGJUrzwodck3Lx6IE2lA0rFREo" href="https://lib.baomitu.com/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  <link href="../../../css/page.css" rel="stylesheet">
  <script crossorigin="anonymous" integrity="sha384-pPttEvTHTuUJ9L2kCoMnNqCRcaMPMVMsWVO+RLaaaYDmfSP5//dP6eKRusbPcqhZ" src="https://lib.baomitu.com/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <script crossorigin="anonymous" integrity="sha384-8t+aLluUVnn5SPPG/NbeZCH6TWIvaXIm/gDbutRvtEeElzxxWaZN+G/ZIEdI/f+y" src="https://lib.baomitu.com/vue/2.6.10/vue.min.js"></script>
  <script src="../../../js/page.js"></script>
  <script src="../../../js/changeTitle.js"></script>
  <link href="../../../imgs/favicon.ico" rel="shortcut icon">
  <script src="../../../js/goToHome.js"></script>
  <!--核心文件 s-->
  <!--核心文件 e-->
  <title></title>
  <script>
    var data={
      title:'bootstrap 弹框（正常+小框+大框）',
      content:{
        intro:{
          list:[
            {
              title:'使用说明：',
              className:'bs-callout-info',
              list:[
                {title:'基础配置：',content:'bootstrap.css和bootstrap.js'}
                ,{title:'需要的文件及代码：',content:'直接复制使用'}
              ]
            }
          ]
        }
      }
    };
  </script>
</head>
<body>
<div id="page">
  <div class="container">
    <h3 class="text-center">{{title}}</h3>
    <div class="bs-callout" :class="item.className" v-for="item in content.intro.list">
      <h4>{{item.title}}</h4>
      <ul>
        <li v-for="item2 in item.list"><b>{{item2.title}}</b>{{item2.content}}</li>
      </ul>
    </div>
  </div>
  <script>
    var page = new Vue({
      el: '#page',
      data: data
    });
  </script>
</div>

<div class="container">
  <section class="panel panel-info">
    <div class="panel-heading">弹正常的框 <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#normalModal">button-点击试试</button>
      <a href="###" class="btn btn-info btn-sm" data-toggle="modal" data-target="#normalModal">a标签-点击试试</a></div>
    <div class="panel-body">
<p><pre>
&lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#normalModal">弹正常的框&lt;/button>
&lt;div class="modal fade" id="normalModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  &lt;div class="modal-dialog" role="document">
    &lt;div class="modal-content">
      &lt;div class="modal-header">
        &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close">&lt;span aria-hidden="true">&times;&lt;/span>&lt;/button>
        &lt;h4 class="modal-title">正常的框&lt;/h4>
      &lt;/div>
      &lt;div class="modal-body">
        ...
      &lt;/div>
      &lt;div class="modal-footer">
        &lt;button type="button" class="btn btn-default" data-dismiss="modal">Close&lt;/button>
        &lt;button type="button" class="btn btn-primary">Save changes&lt;/button>
      &lt;/div>
    &lt;/div>
  &lt;/div>
&lt;/div>
</pre></p>
    </div>
  </section>
  <section class="panel panel-info">
    <div class="panel-heading">弹小框 <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#smallModal">点击试试</button></div>
    <div class="panel-body">
<p><pre>
&lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#smallModal">弹小框&lt;/button>
&lt;div class="modal fade" id="smallModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  &lt;div class="modal-dialog modal-sm" role="document">
    &lt;div class="modal-content">
      &lt;div class="modal-header">
        &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close">&lt;span aria-hidden="true">&times;&lt;/span>&lt;/button>
        &lt;h4 class="modal-title">小框&lt;/h4>
      &lt;/div>
      &lt;div class="modal-body">
        ...
      &lt;/div>
      &lt;div class="modal-footer">
        &lt;button type="button" class="btn btn-default" data-dismiss="modal">Close&lt;/button>
        &lt;button type="button" class="btn btn-primary">Save changes&lt;/button>
      &lt;/div>
    &lt;/div>
  &lt;/div>
&lt;/div>
</pre></p>
    </div>
  </section>
  <section class="panel panel-info">
    <div class="panel-heading">弹大框 <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#bigModal">点击试试</button></div>
    <div class="panel-body">
<p><pre>
&lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#bigModal">弹大框&lt;/button>
&lt;div class="modal fade" id="bigModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  &lt;div class="modal-dialog modal-lg" role="document">
    &lt;div class="modal-content">
      &lt;div class="modal-header">
        &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close">&lt;span aria-hidden="true">&times;&lt;/span>&lt;/button>
        &lt;h4 class="modal-title">大框&lt;/h4>
      &lt;/div>
      &lt;div class="modal-body">
        ...
      &lt;/div>
      &lt;div class="modal-footer">
        &lt;button type="button" class="btn btn-default" data-dismiss="modal">Close&lt;/button>
        &lt;button type="button" class="btn btn-primary">Save changes&lt;/button>
      &lt;/div>
    &lt;/div>
  &lt;/div>
&lt;/div>
</pre></p>
    </div>
  </section>

  <section class="panel panel-info">
    <div class="panel-heading">用js调用弹框 <span class="btn btn-info btn-sm" id="jsBtn">js调用-点击试试</span></div>
    <div class="panel-body">
      <p><pre>
&lt;span class="btn btn-info btn-sm" id="jsBtn">js调用-点击试试&lt;/span>
&lt;script>
  $(function(){
    $('#jsBtn').on('click',function(){
      $('#jsModal').modal();
    })
  });
&lt;/script>
&lt;div class="modal fade" id="jsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  &lt;div class="modal-dialog" role="document">
    &lt;div class="modal-content">
      &lt;div class="modal-header">
        &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close">&lt;span aria-hidden="true">&times;&lt;/span>&lt;/button>
        &lt;h4 class="modal-title">用js调用弹框&lt;/h4>
      &lt;/div>
      &lt;div class="modal-body">
        ...
      &lt;/div>
      &lt;div class="modal-footer">
        &lt;button type="button" class="btn btn-default" data-dismiss="modal">Close&lt;/button>
        &lt;button type="button" class="btn btn-primary">Save changes&lt;/button>
      &lt;/div>
    &lt;/div>
  &lt;/div>
&lt;/div>
</pre></p>
    </div>
  </section>


  <section class="panel panel-info">
    <div class="panel-heading">调用方式（button+a标签+js绑定）</div>
    <div class="panel-body">
<p><pre>
button/a标签的使用：data-toggle="modal" data-target="#normalModal"
&lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#normalModal">弹框&lt;/button>

&lt;a  class="btn btn-primary" data-toggle="modal" data-target="#normalModal">弹框&lt;/a>
js的使用：$('#myModal').modal(options)
</pre></p>
    </div>
  </section>

</div>

<!--正常的框-->
<div class="modal fade" id="normalModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">用a标签调用其他文件里面的框</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

<!-- 小框 -->
<div class="modal fade" id="smallModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">小框</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

<!-- 大框 -->
<div class="modal fade" id="bigModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">大框</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

<!--js调用的框-->
<script>
  $(function(){
    $('#jsBtn').on('click',function(){
      $('#jsModal').modal();
    })
  });
</script>
<div class="modal fade" id="jsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">用js调用弹框</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

</body>

</html>
